<ul class="nav" id="side-menu">
    <li class="nav-header">
        <div class="dropdown profile-element">
            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <span class="text-muted text-xs block">管理员<b
                                            class="caret"></b></span>
                                </span>
            </a>
            <ul class="dropdown-menu animated fadeInRight m-t-xs">
                <li><a class="J_menuItem" href="/member_edit" onclick="close_center()">修改密码</a></li>
                <li><a href="/login_up">安全退出</a></li>
            </ul>
        </div>
    </li>

    @foreach($nav as $v)
        @if(in_array($v['group'],$user['act_list']) || in_array('all',$user['act_list']) || $v['top'] == '課程表')
            <li @if($v['top'] == '課程表') href="#" @endif>
                <a @if(empty($v['lists_url'])) href="/" @else href="#" @endif>
                    <span class="nav-label">{{$v['top']}}</span>
                    @if(!empty($v['lists_url']))
                        <span class="fa arrow"></span>
                    @endif
                </a>
                @if(!empty($v['lists_url']))
                    <ul class="nav nav-second-level">
                        @foreach($v['lists_url'] as $vv)
                            @if(permission($vv['url'], $user['right_list'], $user['get_routes']))
                                <li>
                                    <a class="J_menuItem" href="{{$vv['url']}}">{{$vv['top']}}</a>
                                </li>
                            @endif
                        @endforeach
                    </ul>
                @endif
            </li>
        @endif
    @endforeach
</ul>
